package com.mongodb.mongodbboot.dao;

import com.mongodb.mongodbboot.model.UserDONoID;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class UserNoIdDao {

    @Autowired
    private MongoTemplate mongoTemplate;

    public void insert(UserDONoID entity) {
        mongoTemplate.insert(entity);
    }

}
